//
//  errorQuestionViewController.m
//  ZHIDOU
//
//  Created by 向礼 on 2018/12/24.
//  Copyright © 2018 向礼. All rights reserved.
//

#import "errorQuestionViewController.h"
#import "ErrorQuestionCell.h"

@interface errorQuestionViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UITableView *tableView;

@end

@implementation errorQuestionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"错题集";
    // Do any additional setup after loading the view from its nib.
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}

-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    return 10;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    ErrorQuestionCell * cell = [[ErrorQuestionCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"ErrorQuestionCell"];
    return cell;
}

-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    return 15;
}

-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
    UIView *headeView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, ZD_screenWidth-30, 15)];
    headeView.backgroundColor = UIColorFromRGB(0xf3f3f3);
    return headeView;
}
@end
